package br.pucrio.inf.tamdera.prolog.qbeans;

import br.pucrio.inf.tamdera.MetricConstraint;

public class PrologAntiDriftBean extends PrologQueryBean {

	
	private MetricConstraint metricConstraint;
	
	private String conceptName;
	
	public PrologAntiDriftBean(String query, String conceptName, MetricConstraint constraint ) {
		super(query);
		this.metricConstraint = constraint;
		this.conceptName = conceptName;
	}

	@Override
	public String getDeclString() {
		
		String message = "concept: " + conceptName + " - ";
		message += metricConstraint.getMetric() +  " "  +metricConstraint.getOperator() 
				+ " " + metricConstraint.getValue();
		return message;
	}

	public MetricConstraint getMetricConstraint() {
		return metricConstraint;
	}

	public void setMetricConstraint(MetricConstraint metricConstraint) {
		this.metricConstraint = metricConstraint;
	}

	public String getConceptName() {
		return conceptName;
	}

	public void setConceptName(String conceptName) {
		this.conceptName = conceptName;
	}

}
